Skip to content

Commit 226c9db

Browse files
committed
#110 Use correct Content-Type for urlencoded form data
1 parent e5fddd2 commit 226c9db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/store/request/sagas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function* changeBodyTypeSaga({ bodyType }) {
180180
headers = setContentType(headers, 'multipart/form-data');
181181
break;
182182
case 'urlencoded':
183-
headers = setContentType(headers, 'application/x-www-urlencoded');
183+
headers = setContentType(headers, 'application/x-www-form-urlencoded');
184184
break;
185185
case 'json':
186186
headers = setContentType(headers, 'application/json');

test/store/request/sagas.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('changeBodyTypeSaga saga', () => {
224224
expect(iterator.next([]).value).toEqual(
225225
put(change(requestForm, 'headers', [{
226226
name: 'Content-Type',
227-
value: 'application/x-www-urlencoded',
227+
value: 'application/x-www-form-urlencoded',
228228
}])),
229229
);
230230
});

0 commit comments

Comments
 (0)