Skip to content

Commit 2efe1b8

Browse files
committed
Duplicate the default middleware stack
Duplicate the default middleware stack so that it won't be modified.
1 parent 03a712a commit 2efe1b8

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
@@ -139,7 +139,7 @@ def login
139139
# from {MIDDLEWARE}
140140
# @return [Faraday::RackBuilder or Faraday::Builder]
141141
def middleware
142-
MIDDLEWARE
142+
MIDDLEWARE.dup
143143
end
144144

145145
# Default GitHub password for Basic Auth from ENV

0 commit comments

Comments
 (0)