How did downloads ever work?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4084 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		@@ -540,7 +540,7 @@ function sendData(response, data, type, headers) {
 | 
				
			|||||||
			response.writeHead(200, Object.assign({"Content-Type": "video/mp4", "Content-Length": data.byteLength}, headers || {}));
 | 
								response.writeHead(200, Object.assign({"Content-Type": "video/mp4", "Content-Length": data.byteLength}, headers || {}));
 | 
				
			||||||
			response.end(data);
 | 
								response.end(data);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			response.writeHead(200, Object.assign({"Content-Type": type || "text/javascript; charset=utf-8", "Content-Length": data.byteLength}, headers || {}));
 | 
								response.writeHead(200, Object.assign({"Content-Type": type || "application/binary", "Content-Length": data.byteLength}, headers || {}));
 | 
				
			||||||
			response.end(data);
 | 
								response.end(data);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,7 +60,7 @@
 | 
				
			|||||||
				</div>
 | 
									</div>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			<div id="viewPane" class="vbox" style="flex: 1 0; overflow: auto">
 | 
								<div id="viewPane" class="vbox" style="flex: 1 0; overflow: auto">
 | 
				
			||||||
				<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" allow="serial" style="width: 100%; height: 100%; border: 0"></iframe>
 | 
									<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals allow-downloads" style="width: 100%; height: 100%; border: 0"></iframe>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<script src="/split/split.min.js"></script>
 | 
							<script src="/split/split.min.js"></script>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user