Skip to content

Commit

Permalink
fix: content-type now is not specified when making websocket connection
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Nov 1, 2023
1 parent 47f4b77 commit 732550c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public class KtorMeetacyEngine(
json(json)
}
defaultRequest {
header(HttpHeaders.ContentType, ContentType.Application.Json)
if (!url.protocol.isWebsocket()) {
header(HttpHeaders.ContentType, ContentType.Application.Json)
}
}
}

Expand Down

0 comments on commit 732550c

Please sign in to comment.