Skip to content

Commit

Permalink
chore: fix ci test error in gh action 2
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 14, 2022
1 parent 00cd51d commit 647237b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,10 @@ func TestAccessStaticAssets(t *testing.T) {

checkJsAssetHeader := func(contentType string) {
// new go version has been fixed
is.Equal("application/javascript", contentType)
// win: application/javascript
// lin: text/javascript; charset=utf-8
is.Contains(contentType, "javascript")
// is.Equal("application/javascript", contentType)

// if envutil.IsWin() {
// // go > 1.17: "application/javascript"
Expand Down

0 comments on commit 647237b

Please sign in to comment.