mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Reverted to previous user-agent for bookmark and oembed requests
no issue - need to document changes so that external systems can adapt to the revised user-agent
This commit is contained in:
parent
27066ce910
commit
73429589bd
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
const got = require('got');
|
||||
const dnsPromises = require('dns').promises;
|
||||
const errors = require('@tryghost/errors');
|
||||
const ghostVersion = require('./ghost-version');
|
||||
const config = require('../../shared/config');
|
||||
const validator = require('../data/validation').validator;
|
||||
|
||||
|
@ -40,7 +39,7 @@ async function errorIfHostnameResolvesToPrivateIp(options) {
|
|||
// to a private IP address it will be blocked before the request is made.
|
||||
const externalRequest = got.extend({
|
||||
headers: {
|
||||
'user-agent': 'Ghost/' + ghostVersion.original + ' (https://github.com/TryGhost/Ghost)'
|
||||
'user-agent': 'Ghost(https://github.com/TryGhost/Ghost)'
|
||||
},
|
||||
hooks: {
|
||||
init: [(options) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue