2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01: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:
Kevin Ansfield 2020-06-15 16:01:55 +01:00
parent 27066ce910
commit 73429589bd

View file

@ -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) => {