Skip to content

Commit

Permalink
Merge pull request #1698 from emeitch/fix_deprecated_header
Browse files Browse the repository at this point in the history
Use getHeaders or _headers - fixes #1688
  • Loading branch information
shakyShane committed Jun 7, 2019
2 parents 2fd598f + 87bee4b commit c56cfd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/browser-sync-client/index.js
Expand Up @@ -92,7 +92,8 @@ function init(options, requestBody, type) {
* Set the appropriate headers for caching
*/
setHeaders(res, output);
if (isConditionalGet(req) && fresh(req.headers, res._headers)) {
var resHeaders = res.getHeaders ? res.getHeaders() : res._headers;
if (isConditionalGet(req) && fresh(req.headers, resHeaders)) {
return notModified(res);
}

Expand Down

0 comments on commit c56cfd9

Please sign in to comment.