Skip to content

Commit

Permalink
minor for kataras#1335
Browse files Browse the repository at this point in the history
Former-commit-id: 7bbb330cb4e769222ede5be0adbddc4e37df9e3b
  • Loading branch information
kataras committed Aug 15, 2019
1 parent c9e9a4b commit cf26704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion context/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,7 @@ func (o *ProblemOptions) Apply(ctx Context) {
retryAfterHeaderValue = o.parseRetryAfter(o.RetryAfter, timeLayout)
}

ctx.Header("Retry-After", retryAfterHeaderValue)
if retryAfterHeaderValue != "" {
ctx.Header("Retry-After", retryAfterHeaderValue)
}
}

0 comments on commit cf26704

Please sign in to comment.