-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from bugsnag/remove_header
Remove Bugsnag-Integrity header
- Loading branch information
Showing
5 changed files
with
12 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Before do | ||
$address = nil | ||
$api_key = "166f5ad3590596f9aa8d601ea89af845" | ||
steps %( | ||
When I configure the base endpoint | ||
) | ||
end | ||
Maze.config.enforce_bugsnag_integrity = false | ||
$address = nil | ||
$api_key = "166f5ad3590596f9aa8d601ea89af845" | ||
steps %( | ||
When I configure the base endpoint | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
package headers | ||
|
||
import ( | ||
"fmt" | ||
"time" | ||
) | ||
|
||
// PrefixedHeaders returns a map of Content-Type and the 'Bugsnag-' headers for | ||
// API key, payload version, and the time at which the request is being sent. | ||
func PrefixedHeaders(apiKey, payloadVersion, sha1 string) map[string]string { | ||
integrityHeader := fmt.Sprintf("sha1 %v", sha1) | ||
|
||
func PrefixedHeaders(apiKey, payloadVersion string) map[string]string { | ||
return map[string]string{ | ||
"Content-Type": "application/json", | ||
"Bugsnag-Api-Key": apiKey, | ||
"Bugsnag-Payload-Version": payloadVersion, | ||
"Bugsnag-Sent-At": time.Now().UTC().Format(time.RFC3339), | ||
"Bugsnag-Integrity": integrityHeader, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters