File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,10 @@ class FeedbackWindow: NSWindow {
108108 private func prepareRequest( ) -> URLRequest {
109109 var request = URLRequest ( url: URL ( string: " https://api.github.com/repos/lwouis/alt-tab-macos/issues " ) !)
110110 request. httpMethod = " POST "
111- request. addValue ( " application/vnd.github+json " , forHTTPHeaderField: " Accept " )
111+ request. addValue ( " application/json " , forHTTPHeaderField: " Content-Type " )
112+ request. addValue ( " application/json " , forHTTPHeaderField: " Accept " )
112113 // access token of the alt-tab-macos-bot github account, with scope repo > public_repo
113- request. addValue ( " Bearer " + FeedbackWindow. token, forHTTPHeaderField: " Authorization " )
114+ request. addValue ( " token " + FeedbackWindow. token, forHTTPHeaderField: " Authorization " )
114115 request. httpBody = try ! JSONSerialization . data ( withJSONObject: [
115116 " title " : issueTitle. stringValue,
116117 " body " : assembleBody ( ) ,
You can’t perform that action at this time.
0 commit comments