File tree Expand file tree Collapse file tree 2 files changed +1768
-4
lines changed Expand file tree Collapse file tree 2 files changed +1768
-4
lines changed Original file line number Diff line number Diff line change 4
4
* Based on https://github.com/pydicom/pydicom/blob/8112bb69bfc0423c3a08cb89e7960defbe7237bf/source/generate_dict/generate_dicom_dict.py
5
5
*/
6
6
const fs = require ( 'fs/promises' ) ;
7
- const http = require ( 'http ' ) ;
7
+ const https = require ( 'https ' ) ;
8
8
const xml2js = require ( 'xml2js' ) ;
9
9
10
10
require ( '@babel/register' ) ;
@@ -108,7 +108,7 @@ export default dictionary;
108
108
}
109
109
110
110
async function getDocbook ( part ) {
111
- const source = await getUrl ( `http ://dicom.nema.org/medical/dicom/current/source/docbook/${ part } ` ) ;
111
+ const source = await getUrl ( `https ://dicom.nema.org/medical/dicom/current/source/docbook/${ part } ` ) ;
112
112
return xml2js . parseStringPromise ( source ) ;
113
113
}
114
114
@@ -123,7 +123,7 @@ function getCellData(td) {
123
123
124
124
function getUrl ( url ) {
125
125
return new Promise ( ( resolve , reject ) => {
126
- http . get ( url , request => {
126
+ https . get ( url , request => {
127
127
let data = '' ;
128
128
request . on ( 'error' , ( ) => {
129
129
reject ( error ) ;
You can’t perform that action at this time.
0 commit comments