Skip to content

Commit cca2d80

Browse files
committed
Duplicate the default middleware stack
Duplicate the default middleware stack so that it won't be modified.
1 parent e933fbe commit cca2d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octokit/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def login
147147
# from {MIDDLEWARE}
148148
# @return [Faraday::RackBuilder or Faraday::Builder]
149149
def middleware
150-
MIDDLEWARE
150+
MIDDLEWARE.dup
151151
end
152152

153153
# Default GitHub password for Basic Auth from ENV

0 commit comments

Comments
 (0)