Skip to content

Commit

Permalink
Underscores in headers are not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
filippo-orru committed Nov 7, 2021
1 parent ff15028 commit 336c42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inherit/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class UserInfo with ChangeNotifier {

Map<String, String>? _headers() {
if (sessionToken == null) return null;
return {"session_token": sessionToken!};
return {"SessionToken": sessionToken!};
}

Future<int> register(String username, String password) {
Expand Down

0 comments on commit 336c42e

Please sign in to comment.