Skip to content

Commit

Permalink
chore: update profile's Content-Type (#12631)
Browse files Browse the repository at this point in the history
Keep consistent with previous case naming, like:
```
case "application/json"
case "application/octet-stream"
```
  • Loading branch information
bodhi-crypo authored Nov 19, 2024
1 parent af5adad commit 8392957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagnostics/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func writePprofProfile(w http.ResponseWriter, profile string) {
return
}

w.Header().Set("Content-Type", "aplication/profile")
w.Header().Set("Content-Type", "application/profile")
err := p.WriteTo(w, 0)
if err != nil {
http.Error(w, fmt.Sprintf("Failed to write profile: %v", err), http.StatusInternalServerError)
Expand Down
2 changes: 1 addition & 1 deletion turbo/app/support_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func tunnel(ctx context.Context, cancel context.CancelFunc, sigs chan os.Signal,
})
}

case "aplication/profile":
case "application/profile":
if _, err := io.Copy(buffer, debugResponse.Body); err != nil {
return codec.WriteJSON(ctx1, &nodeResponse{
Id: requestId,
Expand Down

0 comments on commit 8392957

Please sign in to comment.