mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-29 08:29:54 +03:00
parent
d34d793b73
commit
5cf136541f
9 changed files with 14 additions and 8 deletions
|
@ -82,6 +82,6 @@ Http.prototype.send = function() {
|
|||
|
||||
Http.hasHeader = function(header) {
|
||||
return this.getAllResponseHeaders().split('\n').some(function(h) {
|
||||
return h.match(new RegExp('^' + header + ':'), 'i');
|
||||
return new RegExp('^' + header + ':', 'i').test(h);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue