subreddit(check): fix wrong status code to report upstream
This commit is contained in:
parent
c6d84e3de2
commit
a4d840bcbf
|
@ -68,7 +68,7 @@ func (reddit *Reddit) CheckSubreddit(ctx context.Context, params CheckSubredditP
|
||||||
"params", params,
|
"params", params,
|
||||||
"url", url,
|
"url", url,
|
||||||
"response.location", resp.Request.URL.String(),
|
"response.location", resp.Request.URL.String(),
|
||||||
).Code(http.StatusTooManyRequests)
|
).Code(http.StatusFailedDependency)
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.Request.URL.Path == "/subreddits/search.json" {
|
if resp.Request.URL.Path == "/subreddits/search.json" {
|
||||||
|
|
Loading…
Reference in a new issue