Skip to content

Commit

Permalink
fix: expression minor bugs (request#3074)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin Smith authored and reconbot committed Dec 12, 2018
1 parent b3926a3 commit e81c9b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Auth.prototype.digest = function (method, path, authHeader) {

var challenge = {}
var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi
for (;;) {
while (true) {
var match = re.exec(authHeader)
if (!match) {
break
Expand Down
2 changes: 1 addition & 1 deletion lib/har.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Har.prototype.options = function (options) {
req.postData.params.forEach(function (param) {
var attachment = {}

if (!param.fileName && !param.fileName && !param.contentType) {
if (!param.fileName && !param.contentType) {
options.formData[param.name] = param.value
return
}
Expand Down
2 changes: 1 addition & 1 deletion request.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ Request.prototype.jar = function (jar) {
cookies = false
self._disableCookies = true
} else {
var targetCookieJar = (jar && jar.getCookieString) ? jar : globalCookieJar
var targetCookieJar = jar.getCookieString ? jar : globalCookieJar
var urihref = self.uri.href
// fetch cookie in the Specified host
if (targetCookieJar) {
Expand Down

0 comments on commit e81c9b1

Please sign in to comment.