Skip to content

Commit

Permalink
fix: support transform request headers (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiningjason authored Jan 13, 2025
1 parent 179059c commit e051f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0y0/reaxios",
"version": "1.3.1",
"version": "1.3.2",
"description": "Easy-to-use HTTP client based on axios for the browser and NodeJS.",
"src": "src/index.js",
"main": "dist/index.cjs.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Reaxios.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Reaxios {
const promise = (async () => {
let data = this.#body
for (const transformer of this.#requestTransformers)
data = await transformer(data)
data = await transformer(data, this.#headers)

let response = await axios({
url: this.#url,
Expand Down

0 comments on commit e051f9e

Please sign in to comment.