History

Change User-Agent to 'DevDocs'

Thibaut Courouble committed 10 years ago

Commit 1a4bea81 parent 2ccfc3f2 files · +2 −2Browse files

Unified · Split

2 files
  1. lib/docs/core/request.rb +1 −1
  2. lib/docs/core/scrapers/url_scraper.rb +1 −1
lib/docs/core/request.rb+1−1
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
4 4
5 DEFAULT_OPTIONS = {5 DEFAULT_OPTIONS = {
6 followlocation: true,6 followlocation: true,
7 headers: { 'User-Agent' => 'devdocs.io' }7 headers: { 'User-Agent' => 'DevDocs' }
8 }8 }
9 9
10 def self.run(*args, &block)10 def self.run(*args, &block)
lib/docs/core/scrapers/url_scraper.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
12 end12 end
13 13
14 self.params = {}14 self.params = {}
15 self.headers = { 'User-Agent' => 'devdocs.io' }15 self.headers = { 'User-Agent' => 'DevDocs' }
16 16
17 private17 private
18 18

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t